package com.kerbores.jongo.model;

import com.kerbores.jongo.marshall.nutz.anno.Id;

/**
 * Models a type coming from a third party tool like JsonSchema2Pojo.
 * 
 * @author Christian Trimble
 */
public class ExternalType {
	/**
	 * Mixin that supplies all of the mongo specific annotations.
	 * 
	 * @author Christian Trimble
	 */
	public static abstract class ExternalTypeMixin {
		@Id
		public String id;

		public abstract String getId();

		public abstract void setId(String id);
	}

	private String id;

	private String name;

	public ExternalType() {
	}

	public ExternalType(String name) {
		this.name = name;
	}

	public ExternalType(String id, String name) {
		this.id = id;
		this.name = name;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
